M98 P"0:/sys/led/resetstatus.g"

; Prompt user to enter password
M291 S7 J1 R"Enter Password" P"Enter the password to start the test."
var pp = {input}

; Check if the entered password is correct
if var.pp != "vmawt"
	abort "Error: Incorrect password entered."

; Check voltage for both boards
if boards[0].vIn.current < 23 || boards[0].vIn.current > 24.8
	M98 P"0:/sys/led/fault.g"
	abort "Error: Board 0 voltage out of range: " ^ boards[0].vIn.current ^ "V"

; LED Test
M98 P"0:/macros/System/Calibration/Testing/Tests/LED"

; Fans & Heaters Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Fans & Heaters"

; Endstop Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Endstop"

; XYZ - Motor Direction & Connection Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Motor Direction"

; Z - Binding Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Z - Binding"

; Homing Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Homing"

; Probes Test
M98 P"0:/macros/System/Calibration/Testing/Tests/Probe"